package com.algebra.util.sensitive;

import java.util.Map;
import java.util.function.Function;

/**
 * @author al
 * @date 2022/5/25 11:40
 * @description
 */
public interface ISensitiveStrategy {
    default String handle(String type, String value) {
        return (String)((Function)this.getStrategyFunctionMap().get(type)).apply(value);
    }
    Map<String, Function<String, String>> getStrategyFunctionMap();
}
